cmake_minimum_required(VERSION 3.12)
project(bench_tcp)

set(CMAKE_BUILD_TYPE DEBUG)
set(CMAKE_CXX_FLAGS " /MT/D_AMD64_ /DEBUG  /NODEFAULTLIB:MSVCRT.lib /EHsc")
set(CMAKE_CXX_FLAGS_DEBUG "/DEBUG /EHsc")
set(CMAKE_CXX_FLAGS_RELEASE "")

# include_directories("../")
# link_directories("../build/Debug")
# #link_libraries(cppnetwork.lib)
# link_directories("../third/libevent/lib")
# # link_libraries( event_core.lib event_extra.lib  ws2_32 )

# message("project dir is " ${PROJECT_BINARY_DIR})
# add_executable(bench_tcp_client bencn_tcp_client.cpp)

# project(bench_tcp_server)

# set(CMAKE_BUILD_TYPE DEBUG)
# set(CMAKE_CXX_FLAGS " /MTd /D_AMD64_ /DEBUG /EHsc")
# set(CMAKE_CXX_FLAGS_DEBUG "/DEBUG  /std:c++11 /EHsc")
# set(CMAKE_CXX_FLAGS_RELEASE "")

# include_directories("../")
# link_directories("../build/Debug")
# #link_libraries(cppnetwork.lib)
# link_directories("../third/libevent/lib")
# link_libraries(Iphlpapi.lib Bcrypt.lib ws2_32 )

# message("project dir is " ${PROJECT_BINARY_DIR})
# add_executable(bench_tcp_server bench_tcp_server.cpp)

# project(bench_tcp_swarm_client)

# set(CMAKE_BUILD_TYPE DEBUG)
# set(CMAKE_CXX_FLAGS " /MTd /D_AMD64_ /DEBUG /EHsc")
# set(CMAKE_CXX_FLAGS_DEBUG "/DEBUG  /std:c++11 /EHsc")
# set(CMAKE_CXX_FLAGS_RELEASE "")
# include_directories("../")
# link_directories("../build/Debug")
# #link_libraries(cppnetwork.lib)
# link_directories("../third/libevent/lib")
# link_libraries(Iphlpapi.lib Bcrypt.lib ws2_32 )
# message("project dir is " ${PROJECT_BINARY_DIR})
# add_executable(bench_tcp_swarm_client benc_tcp_swarm_client.cpp)


# project(bench_udp_comm)

# set(CMAKE_BUILD_TYPE DEBUG)
# set(CMAKE_CXX_FLAGS " /MTd /D_AMD64_ /DEBUG /EHsc")
# set(CMAKE_CXX_FLAGS_DEBUG "/DEBUG  /std:c++11 /EHsc")
# set(CMAKE_CXX_FLAGS_RELEASE "")
# include_directories("../")
# link_directories("../build/Debug")
# #link_libraries(cppnetwork.lib)
# link_directories("../third/libevent/lib")
# link_libraries(Iphlpapi.lib Bcrypt.lib ws2_32 )
# message("project dir is " ${PROJECT_BINARY_DIR})
# add_executable(bench_udp_comm bench_udp.cpp)


# project(test_cpp11)
# set(CMAKE_BUILD_TYPE DEBUG)
# set(CMAKE_CXX_FLAGS " /MTd /D_AMD64_ /DEBUG /EHsc")
# set(CMAKE_CXX_FLAGS_DEBUG "/DEBUG  /std:c++11 /EHsc")
# set(CMAKE_CXX_FLAGS_RELEASE "")
# include_directories("../")
# link_directories("../build/Debug")
# #link_libraries(cppnetwork.lib)
# link_directories("../third/libevent/lib")
# link_libraries(Iphlpapi.lib ws2_32 )
# message("project dir is " ${PROJECT_BINARY_DIR})
# add_executable(test_cpp11 test.cpp)


project(websocket_client)
set(CMAKE_BUILD_TYPE DEBUG)
set(CMAKE_CXX_FLAGS " /MD /D_AMD64_ /DEBUG /EHsc /DSIO_TLS 
    /D_WEBSOCKETPP_CPP11_TYPE_TRAITS_
     /D_WEBSOCKETPP_CPP11_RANDOM_DEVICE_ 
     /DASIO_STANDALONE /D_WINSOCK_DEPRECATED_NO_WARNINGS /D_CRT_SECURE_NO_WARNINGS")
set(CMAKE_CXX_FLAGS_DEBUG "/DEBUG  /std:c++11 /EHsc")
set(CMAKE_CXX_FLAGS_RELEASE "")
include_directories("../")
include_directories("./")
include_directories("I:\\home\\.conan\\data\\OPENSSL\\1.1.1\\_\\_\\build\\149ed843ea788702da310f9d8f34c34c2a72994a\\pkgsrc\\inc32")
include_directories("../third")
link_directories("../build/Debug" "D:\\project\\c++\\superdog\\third\\lib")
link_directories("../third/libevent/lib"
     "I:\\home\\.conan\\data\\OPENSSL\\1.1.1\\_\\_\\build\\149ed843ea788702da310f9d8f34c34c2a72994a\\pkgsrc\\out32dll" )
link_directories("../third/")
link_libraries(Iphlpapi.lib Bcrypt.lib ws2_32 ssleay32.lib libeay32.lib )
message("project dir is " ${PROJECT_BINARY_DIR})
add_executable(websocket_client websocket_client.cpp websocket_server.cpp websocket_main.cpp)

project(websocket_server)
set(CMAKE_BUILD_TYPE DEBUG)
set(CMAKE_CXX_FLAGS " /MTd /D_AMD64_ /DEBUG /EHsc /DSIO_TLS /D_WEBSOCKETPP_CPP11_TYPE_TRAITS_ /D_WEBSOCKETPP_CPP11_RANDOM_DEVICE_ /DASIO_STANDALONE /D_WINSOCK_DEPRECATED_NO_WARNINGS /D_CRT_SECURE_NO_WARNINGS")
set(CMAKE_CXX_FLAGS_DEBUG "/DEBUG  /std:c++11 /EHsc")
set(CMAKE_CXX_FLAGS_RELEASE "")
# include_directories("../")
# include_directories("./")
# include_directories("C:\\OpenSSL-Win64\\include")
# include_directories("../third")
# link_directories("../build/Debug" "D:\\project\\c++\\superdog\\third\\lib")
# link_directories("../third/libevent/lib" )
# link_directories("../third/")
# link_libraries(Iphlpapi.lib Bcrypt.lib ws2_32  libcrypto_static.lib libcrypto_static.lib  )
message("project dir is " ${PROJECT_BINARY_DIR})
add_executable(websocket_server  websocket_server.cpp websocket_server_main.cpp)
